<!--
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-06-06 09:12:31
 * @LastEditors: 哈哈 8300395+xue-guangxu@user.noreply.gitee.com
 * @LastEditTime: 2022-06-10 20:48:39
 * @FilePath: \移动开发\text.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

</body>
<script>
    function f(a){
    var b=a+''.indexOf('.')
    if(b!=0)
        return true
    else
        return false
}
console.log(f(1.2))


var add=function(x,y){
    return(x+y)
}
console.log(add(3,3))

var people={
    name:'薛光旭',
    age:22,
    sex:'男',
    height:'170cm',
    like:'新鲜的空气',

    sayHello(){
        console.log(`我是${this.name}，今年${this.age}岁了，我的性别是${this.sex}，身高${this.height}，我最喜欢${this.like}。`);
    }


}

people.sayHello()
var num=0xf
console.log(parseInt(num,10))
function jie(a){
    if(a==1)
        return 1
    else
        return a*jie(a-1)
}
console.log(jie(10));

</script>
</html>